/*
 * @Author: peng.chen2 peng.chen2@rt-mart.com
 * @Date: 2025-07-26 10:00:00
 * @LastEditors: peng.chen2
 * @LastEditTime: 2025-08-01 15:07:06
 * @FilePath: /rt-monitoring/src/config/env.ts
 * @Description: 环境变量配置
 */

// 获取环境变量
export const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || '/api'
export const ENABLE_MOCK = import.meta.env.VITE_ENABLE_MOCK === 'true'
// 全部 0：未接听 1：已接听
export const Tab_status = {
  all: -1,
  disconnected: 0,
  connected: 1,
}
export const RES_ERROR = '服务存在异常，请刷新重试或者联系管理员～'
export const LOOP_TIME_SECOND = 10
export const LOOP_TIME_MIL = 1000 * LOOP_TIME_SECOND
export const AUDIO_COUNT = 3
// 导出环境变量配置
export default {
  API_BASE_URL,
  ENABLE_MOCK,
  LOOP_TIME_MIL,
  LOOP_TIME_SECOND,
  AUDIO_COUNT,
}
